﻿<%@ Page Language="C#" MasterPageFile="~/IPMSMasterPage.master" AutoEventWireup="true" CodeFile="SysUpdatesHistory.aspx.cs" Inherits="SysUpdatesHistory" Title="Project Monitoring System" Culture="Auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server" Visible="false"/>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <div style="margin-left:10px;margin-right:10px;">
        <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSearch" meta:resourcekey="Panel1Resource1" HorizontalAlign="Left">
			<cc1:CalendarExtender ID="caldatefrom" runat="server" TargetControlID="txtDateFrom" Enabled="True" Format="yyyy-MM-dd"/>
			<cc1:CalendarExtender ID="caldateto" runat="server" TargetControlID="txtDateTo" Enabled="True" Format="yyyy-MM-dd"/>
			<fieldset>
                <legend>
                    <asp:Label ID="lblSearch" runat="server" Text="Search" meta:resourcekey="lblSearchResource1"></asp:Label>
                </legend>
                <table>
                    <tr>
                        <td>
                            <asp:Label ID="lblTableName" runat="server"  Text="Table Name" meta:resourcekey="lblTableName"/>
                        </td>
                        <td width="10"></td>
                        <td>
                            <asp:DropDownList ID="ddlTableName" runat="server" Width="147px"/>
                        </td>
                        <td width="10"></td>
                        <td>
                            <asp:Label ID="lblDateFrom" runat="server" Text="Date From" meta:resourcekey="lblDateFromCodeResource1"/>
                        </td>
                        <td width="10"></td>
                        <td>
                            <asp:TextBox ID="txtDateFrom" runat="server" Width="147px" MaxLength="30"/>
                        </td>
                        <td width="10"></td>
                        <td>
                            <asp:Label ID="lblDateto" runat="server" Text="To" meta:resourcekey="lblProjectCodeResource1"/>
                        </td>
                        <td width="10"></td>
                        <td>
                            <asp:TextBox ID="txtDateTo" runat="server" Width="147px" MaxLength="30" meta:resourcekey="txtDateTotResource1"/>
                        </td>
                        <td width="10"></td>
                        <td>
                            <asp:Button ID="btnSearch" runat="server" CssClass="submit" meta:resourcekey="btnSearchResource1" OnClick="btnSearch_Click" Text="Search"/>
                        </td>
                    </tr>
                </table>
            </fieldset>
        </asp:Panel>
        <asp:Panel ID="Panel2" runat="server" meta:resourcekey="Panel2Resource1" HorizontalAlign="Left">
           <fieldset>
                <legend>
                    <asp:Label ID="lblInsertHistory" runat="server" Text="Insert History" meta:resourcekey="lblInsertHistoryResource1"></asp:Label>
                </legend>
                <asp:Label ID="lblInsertError" runat="server" Text="Search" CssClass="error" ForeColor="Red" meta:resourcekey="lblInsertErrorResource1"></asp:Label>
                <asp:GridView CssClass="Grid" ID="gvInsertResults" runat="server" 
						BackColor="#DEBA84" 
						BorderColor="#660000"
						BorderStyle="Solid" 
						BorderWidth="1px" 
						CellPadding="0" 
						CellSpacing="0" 
						Width="100%"
						Height="1%" 
						AllowPaging="True" 
						PageSize="10" 
						AllowSorting="True" 
						AutoGenerateColumns="False"
						onpageindexchanging="OnPageIndexChanging">
					<Columns>
						<asp:BoundField DataField="TableName" HeaderText="Table Name" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource1"/>
						<asp:BoundField DataField="ReferenceID" HeaderText="Reference ID" HeaderStyle-Width="300px" meta:resourcekey="BoundFieldResource2"/>
						<asp:BoundField DataField="CreateBy" HeaderText="Create By" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource3"/>
						<asp:BoundField DataField="CreateIP" HeaderText="Create IP" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource5"/>
						<asp:BoundField DataField="CreateDate" HeaderText="Create Date" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource4"/>
					</Columns>
                    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                    <RowStyle CssClass="GridRowStyle" />
                    <AlternatingRowStyle CssClass="GridAltRowStyle" />
                    <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                    <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                    <FooterStyle CssClass="GridFooterStyle" />
                </asp:GridView>
            </fieldset>
        </asp:Panel>
        <asp:Panel ID="Panel3" runat="server" meta:resourcekey="Panel3Resource1" HorizontalAlign="Left">
           <fieldset>
                <legend>
                    <asp:Label ID="lblDeleteHistory" runat="server" Text="Delete History" meta:resourcekey="lbllblDeleteHistoryResource1"></asp:Label>
                </legend>
                <asp:Label ID="lblDeleteError" runat="server" Text="Search" CssClass="error" ForeColor="Red" meta:resourcekey="lblInsertErrorResource1"></asp:Label>
                <asp:GridView CssClass="Grid" ID="gvDeleteResults" runat="server" 
						BackColor="#DEBA84" 
						BorderColor="#660000"
						BorderStyle="Solid" 
						BorderWidth="1px" 
						CellPadding="0" 
						CellSpacing="0" 
						Width="100%"
						Height="1%" 
						AllowPaging="True" 
						PageSize="10" 
						AllowSorting="True" 
						AutoGenerateColumns="False"
						onpageindexchanging="OnPageIndexChanging">
                    <Columns>
						<asp:BoundField DataField="TableName" HeaderText="Table Name" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource6"/>
						<asp:BoundField DataField="ReferenceID" HeaderText="Reference ID" HeaderStyle-Width="300px" meta:resourcekey="BoundFieldResource7"/>
						<asp:BoundField DataField="DeleteBy" HeaderText="Delete By" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource8"/>
						<asp:BoundField DataField="DeleteIP" HeaderText="Delete IP" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource10"/>
						<asp:BoundField DataField="DeleteDate" HeaderText="Delete Date" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource9"/>
					</Columns>
                    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                    <RowStyle CssClass="GridRowStyle" />
                    <AlternatingRowStyle CssClass="GridAltRowStyle" />
                    <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                    <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                    <FooterStyle CssClass="GridFooterStyle" />
                </asp:GridView>
            </fieldset>
        </asp:Panel>
        <asp:Panel ID="Panel4" runat="server" meta:resourcekey="Panel4Resource1" HorizontalAlign="Left">
           <fieldset>
                <legend>
                    <asp:Label ID="lblUpdatesHistory" runat="server" Text="Update History" meta:resourcekey="lblUpdatesHistoryResource1"></asp:Label>
                </legend>
                <asp:Label ID="lblUpdateError" runat="server" Text="Search" CssClass="error" ForeColor="Red" meta:resourcekey="lblInsertErrorResource1"></asp:Label>
                <asp:GridView CssClass="Grid" ID="gvUpdateResults" runat="server" 
						BackColor="#DEBA84" 
						BorderColor="#660000"
						BorderStyle="Solid" 
						BorderWidth="1px" 
						CellPadding="0" 
						CellSpacing="0" 
						Width="100%"
						Height="1%" 
						AllowPaging="True" 
						PageSize="10" 
						AllowSorting="True" 
						AutoGenerateColumns="False"
						onpageindexchanging="OnPageIndexChanging">
					<Columns>
						<asp:BoundField DataField="TableName" HeaderText="Table Name" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource11"/>
						<asp:BoundField DataField="Column" HeaderText="Column Name" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource12"/>
						<asp:BoundField DataField="ReferenceID" HeaderText="Reference Id" HeaderStyle-Width="300px" meta:resourcekey="BoundFieldResource13"/>
						<asp:BoundField DataField="OldValue" HeaderText="Old Value" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource14"/>
						<asp:BoundField DataField="NewValue" HeaderText="New Value" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource15"/>
						<asp:BoundField DataField="UpdateBy" HeaderText="Update By" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource16"/>
						<asp:BoundField DataField="UpdateIP" HeaderText="Update IP" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource17"/>
						<asp:BoundField DataField="UpdatedTime" HeaderText="Update Date" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False" HeaderStyle-Width="100px" meta:resourcekey="BoundFieldResource18"/>
					</Columns>
					<HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
					<RowStyle CssClass="GridRowStyle" />
					<AlternatingRowStyle CssClass="GridAltRowStyle" />
					<SelectedRowStyle CssClass="GridSelectedRowStyle" />
					<PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
					<FooterStyle CssClass="GridFooterStyle" />
                </asp:GridView>
            </fieldset>
        </asp:Panel>
    </div>
</asp:Content>


